<div class="container">
    <!-- main content output -->
    <div>
        
        <h3>Comments</h3>
        <table>
            	
			<div class="table-responsive">
			<table class="table table-bordered table-hover table-striped">
				<thead><tr>
                <td>comment_id</td>
                <td>user_id</td>
                <td>digital_content_id</td>
                <td>comment</td>
                <td>status</td>
				 <td>DELETE</td>
				  <td>edit</td>
            </tr>
            </thead>
            <tbody>
			
			
            <?php foreach ($comments as $comment) { ?>
                <tr>
				
                    <td><?php if (isset($comment->comment_id)) echo htmlspecialchars($comment->comment_id, ENT_QUOTES, 'UTF-8'); ?></td>
                    <td><?php if (isset($comment->user_id)) echo htmlspecialchars($comment->user_id, ENT_QUOTES, 'UTF-8'); ?></td>
                    <td><?php if (isset($comment->digital_content_id)) echo htmlspecialchars($comment->digital_content_id, ENT_QUOTES, 'UTF-8'); ?></td>
                    <td><?php if (isset($comment->comment)) echo htmlspecialchars($comment->comment, ENT_QUOTES, 'UTF-8'); ?></td>
                    <td><?php if (isset($comment->status)) echo htmlspecialchars($comment->status, ENT_QUOTES, 'UTF-8'); ?></td>
                    <td><a href="<?php echo URL . 'adminComments/deleteComment/' . htmlspecialchars($comment->comment_id, ENT_QUOTES, 'UTF-8'); ?>">delete</a></td>
                    <td><a href="<?php echo URL . 'adminComments/editComment/' . htmlspecialchars($comment->comment_id, ENT_QUOTES, 'UTF-8'); ?>">Aprove</a></td>
                   
				   </tr>
                     
                
            <?php } ?>
            </tbody>
        </table>
    </div>
</div>
